package pl.kosmowska.ewelina.client.views;

import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.SavingsDataProxy;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface SavingsView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void getSavingsDataList();

		void deleteSavingsData(SavingsDataProxy selectedItem);

		void goToNewSavingsPlace();

		void goToSavingsEditPlace(SavingsDataProxy selectedItem);
	}

	void setPresenter(Presenter presenter);


	void reInitView(List<SavingsDataProxy> savingsDataList);


	void updateAfterDelete(SavingsDataProxy savingsDataProxy);

	void showMessage(String errorMessage);

	boolean isAlreadyInit();

	void setAlreadyInit(boolean alreadyInit);
}
